import Vue from 'vue';
import VueRouter from 'vue-router';

Vue.use(VueRouter);
const router = new VueRouter({
    mode: 'hash',
    routes: [
        {
            path: '/',
            name: '总览',
            component: () => import('@/views/zl.vue'),
        }
    ]
});

// 路由守卫
router.beforeEach((to, from, next) => {
    if (to.meta.title) {
        document.title = "农业机械化生产态势展示系统";
    }
    next();
});
export default router;
